$OpenBSD: patch-config_c,v 1.1 2016/09/10 13:03:43 ajacoutot Exp $
--- config.c.orig	Sat Sep 10 12:14:03 2016
+++ config.c	Sat Sep 10 12:14:03 2016
@@ -48,7 +48,7 @@
 #include <string.h>
 #include <ifaddrs.h>
 #include <errno.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__OpenBSD__)
 #define __USE_XOPEN
 #include <time.h>
 #endif
